<?php
/**
 * @package YARBB
 * @copyright Авторские права (C) 2009 www.yar-it.com. Все права защищены.
 * @license Лицензия http://www.gnu.org/licenses/gpl-2.0.htm GNU/GPL, или help/license.php
 * YARBB! - свободное программное обеспечение распространяемое по условиям лицензии GNU/GPL
 * Для получения информации о используемых расширениях и замечаний об авторском праве, смотрите файл copyright.php.
 */

defined( '_VALID_MOS' ) or die();

/**
 * Class josForum_annonces
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_annonces extends mosDBTable {
	/**
	 * @var int
	 */
	var $forum_id = null;
	/**
	 * @var text
	 */
	var $forum_annonce = null;
	/**
	 * @var tinyint
	 */
	var $forum_annonce_visible = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_annonces( &$database ) {
		$this->mosDBTable( '#__forum_annonces', 'id', $database );
	}
}

/**
 * Class josForum_bans
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_bans extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $username = null;
	/**
	 * @var varchar
	 */
	var $ip = null;
	/**
	 * @var varchar
	 */
	var $email = null;
	/**
	 * @var varchar
	 */
	var $message = null;
	/**
	 * @var int unsigned
	 */
	var $expire = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_bans( &$database ) {
		$this->mosDBTable( '#__forum_bans', 'id', $database );
	}
}

/**
 * Class josForum_categories
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_categories extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $cat_name = null;
	/**
	 * @var int
	 */
	var $disp_position = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_categories( &$database ) {
		$this->mosDBTable( '#__forum_categories', 'id', $database );
	}
}

/**
 * Class josForum_censoring
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_censoring extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $search_for = null;
	/**
	 * @var varchar
	 */
	var $replace_with = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_censoring( &$database ) {
		$this->mosDBTable( '#__forum_censoring', 'id', $database );
	}
}

/**
 * Class josForum_config
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_config extends mosDBTable {
	/**
	 * @var varchar
	 */
	var $conf_name = null;
	/**
	 * @var text
	 */
	var $conf_value = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_config( &$database ) {
		$this->mosDBTable( '#__forum_config', 'id', $database );
	}
}

/**
 * Class josForum_feeds
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_feeds extends mosDBTable {
	/**
	 * @var varchar
	 */
	var $url = null;
	/**
	 * @var int
	 */
	var $max = null;
	/**
	 * @var tinyint
	 */
	var $closed = null;
	/**
	 * @var int
	 */
	var $forum_id = null;
	/**
	 * @var int
	 */
	var $last_post = null;
	/**
	 * @var int
	 */
	var $num_posts = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_feeds( &$database ) {
		$this->mosDBTable( '#__forum_feeds', 'id', $database );
	}
}

/**
 * Class josForum_forum_perms
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_forum_perms extends mosDBTable {
	/**
	 * @var int
	 */
	var $group_id = null;
	/**
	 * @var int
	 */
	var $forum_id = null;
	/**
	 * @var tinyint
	 */
	var $read_forum = null;
	/**
	 * @var tinyint
	 */
	var $post_replies = null;
	/**
	 * @var tinyint
	 */
	var $post_topics = null;
	/**
	 * @var tinyint
	 */
	var $post_polls = null;
	/**
	 * @var tinyint
	 */
	var $rss_enabled = null;
	/**
	 * @var tinyint
	 */
	var $file_download = null;
	/**
	 * @var tinyint
	 */
	var $file_upload = null;
	/**
	 * @var int
	 */
	var $file_limit = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_forum_perms( &$database ) {
		$this->mosDBTable( '#__forum_forum_perms', 'id', $database );
	}
}

/**
 * Class josForum_forums
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_forums extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $forum_name = null;
	/**
	 * @var text
	 */
	var $forum_desc = null;
	/**
	 * @var text
	 */
	var $forum_mdesc = null;
	/**
	 * @var text
	 */
	var $forum_key = null;
	/**
	 * @var varchar
	 */
	var $redirect_url = null;
	/**
	 * @var text
	 */
	var $moderators = null;
	/**
	 * @var mediumint unsigned
	 */
	var $num_topics = null;
	/**
	 * @var mediumint unsigned
	 */
	var $num_posts = null;
	/**
	 * @var int unsigned
	 */
	var $last_post = null;
	/**
	 * @var int unsigned
	 */
	var $last_post_id = null;
	/**
	 * @var varchar
	 */
	var $last_poster = null;
	/**
	 * @var tinyint
	 */
	var $sort_by = null;
	/**
	 * @var int
	 */
	var $disp_position = null;
	/**
	 * @var int unsigned
	 */
	var $cat_id = null;
	/**
	 * @var int unsigned
	 */
	var $parent_forum_id = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_forums( &$database ) {
		$this->mosDBTable( '#__forum_forums', 'id', $database );
	}
}

/**
 * Class josForum_groups
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_groups extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $g_id = null;
	/**
	 * @var varchar
	 */
	var $g_title = null;
	/**
	 * @var varchar
	 */
	var $g_user_title = null;
	/**
	 * @var tinyint
	 */
	var $g_read_board = null;
	/**
	 * @var tinyint
	 */
	var $g_post_replies = null;
	/**
	 * @var tinyint
	 */
	var $g_post_topics = null;
	/**
	 * @var tinyint
	 */
	var $g_post_polls = null;
	/**
	 * @var tinyint
	 */
	var $g_edit_posts = null;
	/**
	 * @var tinyint
	 */
	var $g_delete_posts = null;
	/**
	 * @var tinyint
	 */
	var $g_delete_topics = null;
	/**
	 * @var tinyint
	 */
	var $g_set_title = null;
	/**
	 * @var tinyint
	 */
	var $g_search = null;
	/**
	 * @var tinyint
	 */
	var $g_search_users = null;
	/**
	 * @var smallint
	 */
	var $g_edit_subjects_interval = null;
	/**
	 * @var smallint
	 */
	var $g_post_flood = null;
	/**
	 * @var smallint
	 */
	var $g_search_flood = null;
	/**
	 * @var int
	 */
	var $g_pm = null;
	/**
	 * @var int
	 */
	var $g_pm_limit = null;
	/**
	 * @var tinyint
	 */
	var $g_global_moderation = null;
	/**
	 * @var varchar
	 */
	var $g_color = null;
	/**
	 * @var int unsigned
	 */
	var $g_rep_minus_min = null;
	/**
	 * @var int unsigned
	 */
	var $g_rep_plus_min = null;
	/**
	 * @var smallint
	 */
	var $g_rep_enable = null;
	/**
	 * @var tinyint
	 */
	var $g_rss_enabled = null;
	/**
	 * @var tinyint
	 */
	var $g_file_download = null;
	/**
	 * @var tinyint
	 */
	var $g_file_upload = null;
	/**
	 * @var int
	 */
	var $g_file_limit = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_groups( &$database ) {
		$this->mosDBTable( '#__forum_groups', 'id', $database );
	}
}

/**
 * Class josForum_online
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_online extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $user_id = null;
	/**
	 * @var varchar
	 */
	var $ident = null;
	/**
	 * @var int unsigned
	 */
	var $logged = null;
	/**
	 * @var tinyint
	 */
	var $idle = null;
	/**
	 * @var varchar
	 */
	var $color = null;
	/**
	 * @var int
	 */
	var $current_page_id = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_online( &$database ) {
		$this->mosDBTable( '#__forum_online', 'id', $database );
	}
}

/**
 * Class josForum_polls
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_polls extends mosDBTable {
	/**
	 * @var int
	 */
	var $id = null;
	/**
	 * @var int
	 */
	var $pollid = null;
	/**
	 * @var longtext
	 */
	var $options = null;
	/**
	 * @var longtext
	 */
	var $voters = null;
	/**
	 * @var tinyint
	 */
	var $ptype = null;
	/**
	 * @var longtext
	 */
	var $votes = null;
	/**
	 * @var int unsigned
	 */
	var $created = null;
	/**
	 * @var int unsigned
	 */
	var $edited = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_polls( &$database ) {
		$this->mosDBTable( '#__forum_polls', 'id', $database );
	}
}

/**
 * Class josForum_posts
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_posts extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $poster = null;
	/**
	 * @var int unsigned
	 */
	var $poster_id = null;
	/**
	 * @var varchar
	 */
	var $poster_ip = null;
	/**
	 * @var varchar
	 */
	var $poster_email = null;
	/**
	 * @var text
	 */
	var $message = null;
	/**
	 * @var tinyint
	 */
	var $hide_smilies = null;
	/**
	 * @var int unsigned
	 */
	var $posted = null;
	/**
	 * @var int unsigned
	 */
	var $edited = null;
	/**
	 * @var varchar
	 */
	var $edited_by = null;
	/**
	 * @var int unsigned
	 */
	var $topic_id = null;
	/**
	 * @var varchar
	 */
	var $userimage = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_posts( &$database ) {
		$this->mosDBTable( '#__forum_posts', 'id', $database );
	}
}

/**
 * Class josForum_ranks
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_ranks extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $rank = null;
	/**
	 * @var mediumint unsigned
	 */
	var $min_posts = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_ranks( &$database ) {
		$this->mosDBTable( '#__forum_ranks', 'id', $database );
	}
}

/**
 * Class josForum_ratings
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_ratings extends mosDBTable {
	/**
	 * @var tinyint
	 */
	var $rate = null;
	/**
	 * @var int unsigned
	 */
	var $user_id = null;
	/**
	 * @var int unsigned
	 */
	var $topic_id = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_ratings( &$database ) {
		$this->mosDBTable( '#__forum_ratings', 'id', $database );
	}
}

/**
 * Class josForum_reputation
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_reputation extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var int unsigned
	 */
	var $user_id = null;
	/**
	 * @var int unsigned
	 */
	var $from_user_id = null;
	/**
	 * @var int unsigned
	 */
	var $time = null;
	/**
	 * @var int unsigned
	 */
	var $post_id = null;
	/**
	 * @var text
	 */
	var $reason = null;
	/**
	 * @var tinyint unsigned
	 */
	var $rep_plus = null;
	/**
	 * @var tinyint unsigned
	 */
	var $rep_minus = null;
	/**
	 * @var int unsigned
	 */
	var $topics_id = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_reputation( &$database ) {
		$this->mosDBTable( '#__forum_reputation', 'id', $database );
	}
}

/**
 * Class josForum_search_cache
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_search_cache extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $ident = null;
	/**
	 * @var text
	 */
	var $search_data = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_search_cache( &$database ) {
		$this->mosDBTable( '#__forum_search_cache', 'id', $database );
	}
}

/**
 * Class josForum_search_matches
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_search_matches extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $post_id = null;
	/**
	 * @var mediumint unsigned
	 */
	var $word_id = null;
	/**
	 * @var tinyint
	 */
	var $subject_match = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_search_matches( &$database ) {
		$this->mosDBTable( '#__forum_search_matches', 'id', $database );
	}
}

/**
 * Class josForum_search_words
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_search_words extends mosDBTable {
	/**
	 * @var mediumint unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $word = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_search_words( &$database ) {
		$this->mosDBTable( '#__forum_search_words', 'id', $database );
	}
}

/**
 * Class josForum_smilies
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_smilies extends mosDBTable {
	/**
	 * @var int
	 */
	var $Id = null;
	/**
	 * @var varchar
	 */
	var $image = null;
	/**
	 * @var varchar
	 */
	var $text = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_smilies( &$database ) {
		$this->mosDBTable( '#__forum_smilies', 'id', $database );
	}
}

/**
 * Class josForum_subscriptions
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_subscriptions extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $user_id = null;
	/**
	 * @var int unsigned
	 */
	var $topic_id = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_subscriptions( &$database ) {
		$this->mosDBTable( '#__forum_subscriptions', 'id', $database );
	}
}

/**
 * Class josForum_topics
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_topics extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var varchar
	 */
	var $poster = null;
	/**
	 * @var varchar
	 */
	var $subject = null;
	/**
	 * @var varchar
	 */
	var $descrip_t = null;
	/**
	 * @var int unsigned
	 */
	var $posted = null;
	/**
	 * @var int unsigned
	 */
	var $last_post = null;
	/**
	 * @var int unsigned
	 */
	var $last_post_id = null;
	/**
	 * @var varchar
	 */
	var $last_poster = null;
	/**
	 * @var mediumint unsigned
	 */
	var $num_views = null;
	/**
	 * @var mediumint unsigned
	 */
	var $num_replies = null;
	/**
	 * @var tinyint
	 */
	var $closed = null;
	/**
	 * @var tinyint
	 */
	var $sticky = null;
	/**
	 * @var int unsigned
	 */
	var $moved_to = null;
	/**
	 * @var int unsigned
	 */
	var $forum_id = null;
	/**
	 * @var tinyint
	 */
	var $announcements = null;
	/**
	 * @var varchar
	 */
	var $question = null;
	/**
	 * @var varchar
	 */
	var $yes = null;
	/**
	 * @var varchar
	 */
	var $no = null;
	/**
	 * @var tinyint
	 */
	var $icon_topic = null;
	/**
	 * @var varchar
	 */
	var $labels = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_topics( &$database ) {
		$this->mosDBTable( '#__forum_topics', 'id', $database );
	}
}

/**
 * Class josForum_users
 * @package		forum
 * @subpackage	yarbb
 */
class josForum_users extends mosDBTable {
	/**
	 * @var int unsigned
	 */
	var $id = null;
	/**
	 * @var int
	 */
	var $jos_id = null;
	/**
	 * @var int unsigned
	 */
	var $group_id = null;
	/**
	 * @var varchar
	 */
	var $membergroupids = null;
	/**
	 * @var varchar
	 */
	var $username = null;
	/**
	 * @var tinyint
	 */
	var $use_avatar = null;
	/**
	 * @var tinyint unsigned
	 */
	var $disp_topics = null;
	/**
	 * @var tinyint unsigned
	 */
	var $disp_posts = null;
	/**
	 * @var tinyint
	 */
	var $email_setting = null;
	/**
	 * @var tinyint
	 */
	var $save_pass = null;
	/**
	 * @var tinyint
	 */
	var $notify_with_post = null;
	/**
	 * @var tinyint
	 */
	var $show_smilies = null;
	/**
	 * @var tinyint
	 */
	var $show_img = null;
	/**
	 * @var tinyint
	 */
	var $show_img_sig = null;
	/**
	 * @var tinyint
	 */
	var $show_avatars = null;
	/**
	 * @var tinyint
	 */
	var $show_sig = null;
	/**
	 * @var int
	 */
	var $num_files = null;
	/**
	 * @var int unsigned
	 */
	var $num_posts = null;
	/**
	 * @var int unsigned
	 */
	var $last_post = null;
	/**
	 * @var int unsigned
	 */
	var $registered = null;
	/**
	 * @var varchar
	 */
	var $registration_ip = null;
	/**
	 * @var int unsigned
	 */
	var $last_visit = null;
	/**
	 * @var varchar
	 */
	var $admin_note = null;
	/**
	 * @var varchar
	 */
	var $imgaward = null;
	/**
	 * @var tinyint
	 */
	var $reverse_posts = null;
	/**
	 * @var int
	 */
	var $upload = null;
	/**
	 * @var mediumtext
	 */
	var $read_topics = null;
	/**
	 * @var int unsigned
	 */
	var $rep_minus = null;
	/**
	 * @var int unsigned
	 */
	var $rep_plus = null;
	/**
	 * @var int unsigned
	 */
	var $reputation_enable = null;
	/**
	 * @var tinyint unsigned
	 */
	var $reputation_enable_adm = null;
	/**
	 * @var tinyint
	 */
	var $email_alert = null;
	/**
	 * @var tinyint
	 */
	var $ignore_mode = null;
	/**
	 * @var varchar
	 */
	var $ignored_users = null;

	/*
	 * Constructor
	 * @param object Database object
	*/
	function josForum_users( &$database ) {
		$this->mosDBTable( '#__forum_users', 'id', $database );
	}
}